package com.wogu.strutstest.service;

import java.util.List;

import com.wogu.strutstest.dao.AccountDao;
import com.wogu.strutstest.model.Account;

public class AccountService {
    
    private AccountDao accountDao;
    
    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
    
    public AccountDao getAccountDao() {
        return accountDao;
    }
    
    public Account getUserByName(String userName) {
        return accountDao.getUserByName(userName);
    }
    
    public List<Account> getUsers() {
        return accountDao.getUsers();
    }
}